import store from "@/store";

export function hasAuth(prem: string): boolean {
    const authoritys: any[] = store.state.menus.premList;
    // 数组中寻找是否有这个值
    return authoritys.indexOf(prem) > -1;
}